package dataInv

import (
	inventory_pb "mxshop/api/inventory/v1"
	IInv "mxshop/app/mxshop_api/api/internal/data/inv"
)

type InvFactory struct {
	ic inventory_pb.InventoryClient
}

func (i *InvFactory) Inventory() IInv.Inventory {
	return newInventory(i.ic)
}

func NewInv(ic inventory_pb.InventoryClient) IInv.InventoryData {
	return &InvFactory{ic: ic}
}
